﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;


namespace buzztest1
{
    public partial class frmMain : Form
    {
        public frmMain()
        {
            InitializeComponent();
        }

        private void button1_Click(object sender, EventArgs e)
        {
            btnGetBuzz.Enabled = false;
            BuzzSharp buzz = new BuzzSharp();
            try
            {
                txtBuzzLog.Text = buzz.GetRawBuzz(txtUserName.Text);
                buzz.GetBuzz(txtUserName.Text);
            }
            catch
            {
                btnGetBuzz.Enabled = true;
            }
            btnGetBuzz.Enabled = true;
        }
    }
}
